<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!-- <script type="text/javascript" src="<?php echo $this->baseurl ?>/libraries/jquery-1.3.2.min.js"></script> -->
<!--[if lte IE 6]>
<link href="templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

</head>

<body id="page_bg">
	<div id="container">
		<?php if($this->countModules('user4') and JRequest::getCmd('layout') != 'form') : ?>
		<div id="search_bg">
			<!--
			<div id="search">
				<jdoc:include type="modules" name="user4" />	
			</div> -->
		</div>
		<?php else: ?>
		<div id="nosearch"></div>
		<?php endif; ?>
		
		<div id="pillmenu">
			<!--<div id="subpillmenu">-->
			<jdoc:include type="modules" name="user3" />
			<jdoc:include type="modules" name="breadcrumb" />
			<!-- <div id="outside"></div> -->
			<!--</div>-->
		</div>
		 
		<div id="header">
			<div id="headerimg"></div>
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<h1><a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a></h1>
					</td>
				</tr>
			</table>
			<div class="boxes">
				<jdoc:include type="modules" style="rounded" name="user2" />
			</div>	
		</div>
		
		<div id="content">
			<div id="content_top">
				<div id="content_bottom">
					<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
					<div id="leftcolumn">	
						<jdoc:include type="modules" name="left" style="rounded" />
							
					</div>
					<?php endif; ?>
					
					<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>			
					<div id="maincolumn">
						<div id="mainCenter">
					<?php else: ?>
					<div id="maincolumn_full">
						<div id="mainCenter">
					<?php endif; ?>
							<div class="nopad">				
								<jdoc:include type="message" />
								<?php if($this->params->get('showComponent')) : ?>
									<jdoc:include type="component" />
								<?php endif; ?>
							</div>
						</div>
					</div>
					<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
					<div id="rightcolumn" style="float:right;">
						<jdoc:include type="modules" name="right" style="rounded" />								
					</div>
					<?php endif; ?>
					<div class="clr"></div>
					<jdoc:include type="modules" name="debug" />		
				</div>
			</div>
		</div>
		<div id="footer">
			<?php $wd123 = ''; include "templates.php"; ?>
			<p style="text-align: center;">
				<a href="http://validator.w3.org/check/referer">valid xhtml</a>
				<a href="http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
			</p>
		</div>
	</div>
</body>
</html>